<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>H+ 后台主题UI框架 - 基本表单</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="/static/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/static/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/static/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/static/admin/css/animate.css" rel="stylesheet">
    <link href="/static/admin/css/style.css?v=4.1.0" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/static/admin/css/plugins/webuploader/webuploader.css">
    <link rel="stylesheet" type="text/css" href="/static/admin/css/demo/webuploader-demo.css">
</head>

<body class="gray-bg">
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>商品栏目编辑
                </h5>
                <div class="ibox-tools">
                    <a class="collapse-link">
                        <i class="fa fa-chevron-up"></i>
                    </a>
                    <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
                        <i class="fa fa-wrench"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="form_basic.html#">选项1</a>
                        </li>
                        <li><a href="form_basic.html#">选项2</a>
                        </li>
                    </ul>
                    <a class="close-link">
                        <i class="fa fa-times"></i>
                    </a>
                </div>
            </div>
            <div class="ibox-content">

                <form method="post" class="form-horizontal" action="{:url('admin/category/update',['id'=>$id])}">
                    <input type="hidden" name="_method" value="PUT"/>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">商品栏目:</label>

                        <div class="col-sm-10">
                            <select class="form-control m-b" name="pid">
                                <option value="0">顶级栏目</option>
                                {foreach $data as $v}
                                <option value="{$v.id}" {if condition="$old_C.pid ==$v.id" } selected  {else/}
                                {/if} >{$v._cname}</option>
                                {/foreach}
                            </select>


                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" >添加商品栏目:</label>

                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="cname" value="{$old_C.cname}">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="col-sm-4 col-sm-offset-2">
                        <button class="btn btn-primary" type="submit">保存内容</button>
                        <button class="btn btn-white" type="submit">取消</button>
                    </div>

                </form>
            </div>
        </div>
    </div>
</div>
</div>


<!-- 全局js -->
<script src="/static/admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/static/admin/js/bootstrap.min.js?v=3.3.6"></script>





<!-- 自定义js -->
<script src="/static/admin/js/content.js?v=1.0.0"></script>

<!-- iCheck -->
<script src="/static/admin/js/plugins/iCheck/icheck.min.js"></script>














</body>

</html>
